//引入封装的公共的请求插件
import { POST,UPLOAD,UPLOADS } from '@/axios/index.js'

export default {
    // 登入
    Login(data = {}) {
        //注册接口
        return POST({
            url:'/User/login',
            params: data
        });
    },
    // 注册
    Register(data = {}) {
        //注册接口
        return POST({
            url:'/User/register',
            params: data
        })
    },
    // 更新数据
    Change(data = {}) {
        //注册接口
        return UPLOAD({
            url:'/User/change',
            params: data
        });
    },
    // 请求电子邮箱验证码
    SendEmailCode(data = {}) {
        //注册接口
        return POST({
            url:'/User/email',
            params: data
        });
    },
    // 验证邮箱验证码
    CodeVerify(data = {}) {
        return POST({
            url:'/User/codeverify',
            params: data
        });
    },
    // 用户订单页
    SearchOrder(data = {}){
        return POST({
            url:'/User/searchOrder',
            params: data
        });
    },
    // 订单详情
    OrderInfo(data = {}) {
        return POST({
            url:'/User/orderinfo',
            params: data
        });
    },
    // 物流详情
    OrderExpress(data = {}) {
        return POST({
            url:'/User/orderexpress',
            params: data
        });
    },
    // 订单评论
    OrderAppraise(data = {}){
        return POST({
            url:'/User/orderappraise',
            params: data
        });
    },
    // 订单评论
    ChangeOrderAppraise(data = {}){
        return UPLOADS({
            url:'/User/changeorderappraise',
            params: data
        });
    },
    // 确认收货
    OrderConfirm(data = {}){
        return POST({
            url:'/User/orderconfirm',
            params: data
        });
    },
    // 用户退货
    OrderRefund(data = {}){
        return POST({
            url:'/User/orderrefund',
            params: data,
        });
    },
    // 用户订单
    BusRecord(data = {}){
        return POST({
            url:'/User/busrecord',
            params: data
        });
    },
    // 充值中心初始
    PayIndex(data = {}){
        return POST({
            url:'/User/payindex',
            params: data
        });
    },
    // 提交充值
    SendPrice(data = {}){
        return POST({
            url:'/User/sendprice',
            params: data
        });
    },
    // 充值记录
    PayRecord(data = {}){
        return POST({
            url:'/User/payrecord',
            params: data
        });
    }
}